/**
 * mainwindow.h is part of cbs-framework.
 *
 * cbs-framework is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * cbs-framework is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with cbs-framework.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow( QWidget * parent = 0 );
    virtual ~MainWindow();
    
private:

    // GUI components.
    // ---------------
    Ui::MainWindow *    m_ui;
    QDockWidget *       m_tasksDockWidget;
    QDockWidget *       m_resourcesDockWidget;
    QTabWidget *        m_tabbedWidget;

    // Fields.
    // -------

    // Methods.
    // --------

    void Clear();
    void CreateMenus();
    void CreateToolBars();
    void CreateDockWidgets();
    void CreateTasksDockWidget();
    void CreateResourcesDockWidget();
    void CreateCenterWidget();
    void CreateStatusBar();

    // Protect default copy constructor.
    MainWindow( const MainWindow & a_other );

    // Protect default operator =.
    MainWindow & operator = ( const MainWindow & a_other );
};

#endif // MAINWINDOW_H
